package com.accp.demo.controller.sale;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.accp.demo.pojo.*;
import com.accp.demo.pojo.sale.StockTiaobo;
import com.accp.demo.service.sale.StockTiaoboservice;;

@Controller
@RequestMapping("Tiaobo")
public class StockTiaobocontroller {
private StockTiaoboservice tiaoService;
@RequestMapping("/queryBypage")
@ResponseBody
public Object queryBypage(Integer page,Integer limit){
	return tiaoService.queryByPage(page,1);
}
/**
 * 主祥查询
 */
@RequestMapping("/queryStockTiaobobyid")
@ResponseBody
public StockTiaobo queryStockTiaobobyid(String sid){
	return tiaoService.queryStockTiaobobyid(sid);
}
/**
 * 新增
 * */
@RequestMapping("/saveStockTiaobo")
@ResponseBody
public void saveStockTiaobo(StockTiaobo tiaobo){
	tiaoService.saveStockTiaobo(tiaobo);
}
/**
 * 删除
 */
@RequestMapping("/updateStockTiaobostate")
@ResponseBody
public void updateStockTiaobostate(String sid){
	tiaoService.updateStockTiaobostate(sid);
}
}
